package com.example.命令模式;

/**
 * 开灯命令 (ConcreateCommand)
 */
public class LinghtOnCommand implements Command {
    private Light light;

    public LinghtOnCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.on();
    }

}
